package org.apak.model;

public class ServiceRequest {
	
	private int service_request;
	private int customer_fk;
	private String customerName;
	private int created_by;
	private String created_byName;
	private String service_desc_by_customer;
	private String service_desc_by_employee;
	private int service_request_status_type_fk;
	private String service_request_status_typeName;
	
	public ServiceRequest(int service_request, int customer_fk, String customerName, int created_by, String created_byName,
			String service_desc_by_customer, String service_desc_by_employee, int service_request_status_type_fk, String service_request_status_typeName) {
		this.service_request = service_request;
		this.customer_fk = customer_fk;
		this.customerName = customerName;
		this.created_by = created_by;
		this.created_byName = created_byName;
		this.service_desc_by_customer = service_desc_by_customer;
		this.service_desc_by_employee = service_desc_by_employee;
		this.service_request_status_type_fk = service_request_status_type_fk;
		this.service_request_status_typeName = service_request_status_typeName;
	}
	public ServiceRequest() { 
		this.service_desc_by_customer = "";
		this.service_desc_by_employee = "";
		this.created_by = 1;
	}
	
	public int getService_request() {
		return service_request;
	}
	public void setService_request(int service_request) {
		this.service_request = service_request;
	}
	public int getCustomer_fk() {
		return customer_fk;
	}
	public void setCustomer_fk(int customer_fk) {
		this.customer_fk = customer_fk;
	}
	public int getCreated_by() {
		return created_by;
	}
	public void setCreated_by(int created_by) {
		this.created_by = created_by;
	}
	public String getService_desc_by_customer() {
		return service_desc_by_customer;
	}
	public void setService_desc_by_customer(String service_desc_by_customer) {
		this.service_desc_by_customer = service_desc_by_customer;
	}
	public String getService_desc_by_employee() {
		return service_desc_by_employee;
	}
	public void setService_desc_by_employee(String service_desc_by_employee) {
		this.service_desc_by_employee = service_desc_by_employee;
	}
	public int getService_request_status_type_fk() {
		return service_request_status_type_fk;
	}
	public void setService_request_status_type_fk(int service_request_status_type_fk) {
		this.service_request_status_type_fk = service_request_status_type_fk;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getCreated_byName() {
		return created_byName;
	}

	public void setCreated_byName(String created_byName) {
		this.created_byName = created_byName;
	}

	public String getService_request_status_typeName() {
		return service_request_status_typeName;
	}

	public void setService_request_status_typeName(
			String service_request_status_typeName) {
		this.service_request_status_typeName = service_request_status_typeName;
	}
	
	public void changeCustomer(Customer customer) {
		this.customer_fk = customer.getCustomer();
		this.customerName = customer.getCustomerName();
	}
	
	public void changeDescription(String byCustomer, String byEmployee) {
		this.service_desc_by_customer = byCustomer;
		this.service_desc_by_employee = byEmployee;
	}
	
}
